/*
 * @(#)CalendarPerference.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */

package com.dcivision.calendar.bean;

import com.dcivision.framework.bean.AbstractBaseObject;

/**
  CalendarPerferenceDAObject.java

  This class is the data access bean for table "CALENDAR_PERFERENCE".

  @author          Scott Tong
  @company         DCIVision Limited
  @creation date   18/08/2003
  @version         $Revision: 1.8 $
*/

public class CalendarPerference extends AbstractBaseObject {

  public static final String REVISION = "$Revision: 1.8 $";

  static final long serialVersionUID = -7226221792612070348L;

  private Integer userRecordID = null;
  private String defaultView = null;
  private Float displayTimeInterval = null;
  private String weekBeginOn = null;
  private Integer startShowHour = null;
  private Integer endShowHour = null;
  private Integer defaultGroup = null;
  

  public CalendarPerference() {
    super();
  }

  public Integer getUserRecordID() {
    return(this.userRecordID);
  }

  public void setUserRecordID(Integer userRecordID) {
    this.userRecordID = userRecordID;
  }

  public String getDefaultView() {
    return(this.defaultView);
  }

  public void setDefaultView(String defaultView) {
    this.defaultView = defaultView;
  }

  public Float getDisplayTimeInterval() {
    return(this.displayTimeInterval);
  }

  public void setDisplayTimeInterval(Float displayTimeInterval) {
    this.displayTimeInterval = displayTimeInterval;
  }

  public String getWeekBeginOn() {
    return(this.weekBeginOn);
  }

  public void setWeekBeginOn(String weekBeginOn) {
    this.weekBeginOn = weekBeginOn;
  }

  public Integer getStartShowHour() {
    return(this.startShowHour);
  }

  public void setStartShowHour(Integer startShowHour) {
    this.startShowHour = startShowHour;
  }

  public Integer getEndShowHour() {
    return(this.endShowHour);
  }

  public void setEndShowHour(Integer endShowHour) {
    this.endShowHour = endShowHour;
  }

  //-------------------------------add by Tony -----------------
  public String toString() {
    return(this.getClass().getName() + "[id:" + toString(id) + "|userRecordID:" + toString(userRecordID) + "|defaultView:" + toString(defaultView) + "|displayTimeInterval:" + toString(displayTimeInterval) + "|weekBeginOn:" + toString(weekBeginOn) + "|startShowHour:" + toString(startShowHour) + "|endShowHour:" + toString(endShowHour) + "|creatorID:" + toString(creatorID) + "|createDate:" + toString(createDate) + "|updaterID:" + toString(updaterID) + "|updateDate:" + toString(updateDate) + "|creatorName:" + toString(creatorName) + "|updaterName:" + toString(updaterName) + "]");
  }

  public Object clone() {
      CalendarPerference obj = new CalendarPerference();
      obj.setID(this.getID());
      obj.setUserRecordID(this.getUserRecordID());
      obj.setDefaultView(this.getDefaultView());
      obj.setDisplayTimeInterval(this.getDisplayTimeInterval());
      obj.setWeekBeginOn(this.getWeekBeginOn());
      obj.setStartShowHour(this.getStartShowHour());
      obj.setEndShowHour(this.getEndShowHour());
      obj.setDefaultGroup(this.getDefaultGroup());
      obj.setCreatorID(this.getCreatorID());
      obj.setCreateDate(this.getCreateDate());
      obj.setUpdaterID(this.getUpdaterID());
      obj.setUpdateDate(this.getUpdateDate());
      obj.setCreatorName(this.getCreatorName());
      obj.setUpdaterName(this.getUpdaterName());
      return(obj);
  }

  public boolean equals(Object obj) {
    return(obj != null && obj.getClass().getName().equals(this.getClass().getName()) && ((AbstractBaseObject)obj).getID() != null && ((AbstractBaseObject)obj).getID().equals(this.getID()));
  }

  public Integer getDefaultGroup() {
    return defaultGroup;
  }
  
  public void setDefaultGroup(Integer defaultGroup) {
    this.defaultGroup = defaultGroup;
  }
}
